<%@ page import="java.util.List" %>
<%@ page import="com.site.entity.*" %>
<%@ page import="com.site.service.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:useBean id="service" class="com.site.service.ConfigService" scope="page" />
<%
    ConfigEntity entity=service.getSiteConfig();
    List<NewTypeEntity> list=new NewTypeService().getAll();
    List<NewsEntity> listHot=new NewsService().getHots();
    List<CaseEntity> caselist=new CaseService().getAll();
%>

<html>
<head>
    <title>案例欣赏</title>
    <link rel="stylesheet" href="CSS/Case Admire.css">
    <link rel="stylesheet" href="CSS/Index-header.css">
    <link rel="icon" href="Images/favicon.ico">
    <base target="_top" />
</head>
<body>
<!-- 引入头部 -->
<div id="header"><%@include file="header.jsp"%></div>

<!-- banner广告 -->
<img src="Images/PressCenter/banner.png" alt="" class="banner">

<div class="w1200 content">
    <div class="new_list_l">
        <div class="child">
            <h1>新闻中心</h1>
            <%
                for(NewTypeEntity e1:list){
            %>
            <div>
                <a href="#">
<%--                    企业新闻--%>
                    <%=e1.getTitle()%>
                </a>
            </div>
            <%
                }
            %>
        </div>
        <div class="child">
            <h1>
                <span>热门文章</span>
                <a href="#" class="more">
                    More +
                </a>
            </h1>
            <ul>
                <%
                    for(NewsEntity hot:listHot){
                %>
                <li>
                    <a href="#">
<%--                        李过方娘都收大沫为兄必人措制出只从，场。--%>
                        <%=hot.getTitle()%>
                    </a>
                </li>
                <%
                    }
                %>
            </ul>
        </div>
        <div class="child">
            <h1>联系方式</h1>
            <p>
                <span>电话：
<%--                    028-88889999--%>
                    <%=entity.getPhone()%>
                </span>
                <span>邮箱：
<%--                    strive.he@qq.com--%>
                    <%=entity.getEmail()%>
                </span>
                <span>地址：
<%--                    成都市高新区--%>
                    <%=entity.getAdress()%>
                </span>
            </p>
        </div>

    </div>

    <div class="new_list_r">
        <div class="title-show">
            当前位置：网站首页 &gt; 新闻中心
        </div>

        <div class="new_list_box">
            <div class="item_box">
                <%
                    for(CaseEntity en:caselist){
                %>
                <div class="item">
                    <a href="javascript:;">
                        <img src="<%=en.getBgImg()%>">
                        <div>
                            <h2><%=en.getTitle()%></h2>
<%--                            Lorem ipsum dolor sit, amet consectetur adipisicing elit. Sint, libero quam. Explicabo, dolorem--%>
<%--                            soluta assumenda quo eaque at obcaecati inventore provident labore natus earum aliquam dolorum--%>
<%--                            perferendis necessitatibus corrupti alias!--%>
                            <%=en.getRemark()%>
                        </div>
                    </a>
                </div>
                <%
                    }
                %>

            </div>
        </div>
    </div>
</div>

<!-- 引入底部 -->
<div id="footer"><%@include file="footer.jsp"%></div>
</body>
</html>
